//: [Previous](@previous)

import UIKit
import PlaygroundSupport

enum BNAlertActionStyle {
    case gray
    case blue
}

class BNAlertAction {
    
    private var title: String?
    private var style: BNAlertActionStyle
    private var action: (() -> ())?
    
    init(title: String?, style: BNAlertActionStyle, action: (() -> ())?) {
        self.style = style
        self.title = title
        self.action = action
    }
}

class BNAlertViewController: UIViewController {
    
    fileprivate(set) var actions: [BNAlertAction] = []
    private var alertTitle: String?
    private var alertContent: UIView?
    
    convenience init(title: String?) {
        self.init()
        self.alertTitle = title
    }
    
    func addAction(_ action: BNAlertAction) {
        self.actions.append(action)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        //UIAlertController
    }
}


let vc = UIViewController()
vc.view.backgroundColor = UIColor.yellow

PlaygroundPage.current.liveView = vc

//: [Next](@next)
